#ifndef TYPES_H
#define TYPES_H

#include <qglobal.h>


#define u8 Q_UINT8
#define u16 Q_UINT16
#define u32 Q_UINT32
#define u64 Q_UINT64

#ifndef MAX_FD
  // In linux/limits.h OPEN_MAX is 256?! I thought it was much bigger like 1024?
  #define MAX_FD 256
#endif

const u32 CLIENT_CHAT = 0x43484154;
const u32 CLIENT_W2BN = 0x5732424e;
const u32 CLIENT_STAR = 0x53544152;
const u32 CLIENT_SSHR = 0x53534852;
const u32 CLIENT_SEXP = 0x53455850;
const u32 CLIENT_DSHR = 0x44534852;
const u32 CLIENT_DRTL = 0x4452544c;
const u32 CLIENT_D2DV = 0x44324456;
const u32 CLIENT_D2XP = 0x44325850;
const u32 CLIENT_JSTR = 0x4a535452;

#endif
